package wili.exp.simple;

import java.util.Map;
import java.util.TreeMap;

import wili.c.Math9a;

/**
 * Not used yet.
 * @author weilai
 */
class Scont extends TreeMap<Object, Object> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public String toString() {
		return super.toString();
	}

	Scont() {
	}

	public Scont(Map<String, Object> map) {
		super(map);
	}

	@SuppressWarnings("unchecked")
	public <T> T valueOf(String key) {
		return (T) this.get(key);
	}

	public Scont puts(Object... kvList) {
		for (int i = 0; i < kvList.length; i += 2) {
			Object v = kvList[i + 1];
			Number va = Math9a.numOf(v);
			this.put((String) kvList[i], (Number) va);
		}
		return this;
	}
}
